﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Order
{
    [Table("HouseOrder")]
    public class HouseOrder
    {
        [Key]
        public int OiderId { get; set; }
        /// <summary>
        /// 预定编号
        /// </summary>
        public string ?HouseOrderNumber { get; set; }
        /// <summary>
        /// 房间id
        /// </summary>
        [ForeignKey("HouseId")]
        public int HouseId { get; set; }
        /// <summary>
        /// 入住日期
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 离店日志
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 预订姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string UserPhone { get; set; }
        /// <summary>
        /// 特殊需求
        /// </summary>
        public string UserNeed { get; set; }
        /// <summary>
        /// 早餐数量
        /// </summary>
        public int BreakFood { get; set; }
        /// <summary>
        /// 人脸图片
        /// </summary>
        public string UserImg { get; set; }
        /// <summary>
        /// 预定时间
        /// </summary>
        public DateTime ?OrderTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 入住状态默认未入住
        /// </summary>
        public string OrderState { get; set; } = "未入住";
        /// <summary>
        /// 订单的归属者
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据状态 true显示 false不显示
        /// </summary>
        public bool CodeState { get; set; } = true;
    }
}
